const {
	defineConfig
} = require('@vue/cli-service')
const path = require('path')

module.exports = defineConfig({
	transpileDependencies: true,
	lintOnSave: false,
	publicPath: './',


	pluginOptions: {
		'style-resources-loader': {
			preProcessor: 'less',
			patterns: [
				path.join(__dirname, './src/assets/styles/variables.less'),
				path.join(__dirname, './src/assets/styles/mixins.less')
			]
		}
	},

	chainWebpack: config => {
		config.set('externals', {
			qc: 'QC'
		})
	},

	devServer: {
		historyApiFallback: true,
		allowedHosts: "all",
	},
})
